<script>
import { config, column } from './formConfig.js'
import BasicManage from '@/components/basic/BasicManage.vue'
export default {
    extends: BasicManage,
    data() {
        return {
            table_title: '数据库',
            url: 'dbmanage',
            baseForm: {
                name: '',
                host: '',
                port: '',
                user: '',
                pwd: '',
                dbname: '',
            },
        }
    },
    created() {
        column[0].buttons = [
            {
                text: '编辑',
                icon :"el-icon-edit",
                click: (val) => {
                    this.handleEdit(val)
                },
            },
            {
                text: '删除',
                icon:"el-icon-delete",
                click: (val) => {
                    this.delete(val)
                },
            },
        ]
        column[0].if = this.operate
        this.dialog.config = config
        this.tableColumn = column
        this.getlist()
    },
}
</script>
